# pull d2l repo
git clone https://gitcode.com/desyang-hub/d2l-pytorch.git
cd d2l-pytorch

# build d2l env
pip install wheel
bash install.sh

# 自动输入密码（不推荐明文存储密码）
echo "https://username:password@github.com" > ~/.git-credentials
git config --global credential.helper store